<?php

namespace App\Model;

class UsersModel extends BaseModel
{
    protected $table = 'users';
    protected $primaryKey = 'user_id';

    protected $fillable = [
        'username','password','spread_id','pay_pass'
    ];


    public function childs(): \Illuminate\Database\Eloquent\Relations\HasMany
    {
        return $this->hasMany(self::class,'spread_id','user_id');
    }
}
